<?
class curl {
   private $handle;
   
   function setup($sUrl) {
       $this->handle = curl_init();
       curl_setopt($this->handle, CURLOPT_URL, $sUrl);
       curl_setopt($this->handle, CURLOPT_HEADER, 0);
       curl_setopt($this->handle, CURLOPT_RETURNTRANSFER, 1);
   }
   

   function execute() {
       $sResponse = curl_exec($this->handle);
	   return $sResponse;
   }
   
   function close() {
       curl_close($this->handle);
   }
}

?>
